<!--  -->
<template>
  <div class="projectname">
    <van-nav-bar class="nav" @click-left="onClickLeft" title="项目名称" :left-arrow="true">
      <slot slot="right" name="right">
        <img class="righticon" src="@/assets/img/capitaldetails/detail.png" />
      </slot>
    </van-nav-bar>
    <div class="header">
      <div class="money">
        <span>¥</span> 66.00
      </div>
      <div class="tip">预期效益(元)</div>
    </div>
    <div class="column">
      <ul class="list clearfix">
        <li>
          <p class="value">
            <span>¥</span>666.00
          </p>
          <p class="name">投资金额(元）</p>
        </li>
        <li>
          <p class="value">
            <span>¥</span>666.00
          </p>
          <p class="name">代金券(元)</p>
        </li>
        <li>
          <p class="value">
            <span>¥</span>666.00
          </p>
          <p class="name">投资期限(天)</p>
        </li>
      </ul>
      <div class="msg">
        <img class="righticon" src="@/assets/img/capitaldetails/jine.png" />
        收益方式：每天返息，到期还本
      </div>
    </div>
    <div class="content">
      <div class="cell">
        <div class="cell_title">
          第一期
          <div class="text">
            <span>计息中</span>
          </div>
        </div>
        <ul class="cell_main clearfix">
          <li>
            <p class="cellvalue">10</p>
            <p class="cellname">投资期限(天)</p>
          </li>
          <li>
            <p class="cellvalue">2000</p>
            <p class="cellname">应收本金</p>
          </li>
          <li>
            <p class="interestvalue">2.66</p>
            <p class="interestname">应收利息</p>
          </li>
        </ul>
      </div>
      <div class="cell">
        <div class="cell_title">
          第一期
          <div class="text">
            <span>计息中</span>
          </div>
        </div>
        <ul class="cell_main clearfix">
          <li>
            <p class="cellvalue">10</p>
            <p class="cellname">投资期限(天)</p>
          </li>
          <li>
            <p class="cellvalue">2000</p>
            <p class="cellname">应收本金</p>
          </li>
          <li>
            <p class="interestvalue">2.66</p>
            <p class="interestname">应收利息</p>
          </li>
        </ul>
      </div>
      <div class="cell">
        <div class="cell_title">
          第一期
          <div class="text">
            <span>计息中</span>
          </div>
        </div>
        <ul class="cell_main clearfix">
          <li>
            <p class="cellvalue">10</p>
            <p class="cellname">投资期限(天)</p>
          </li>
          <li>
            <p class="cellvalue">2000</p>
            <p class="cellname">应收本金</p>
          </li>
          <li>
            <p class="interestvalue">2.66</p>
            <p class="interestname">应收利息</p>
          </li>
        </ul>
      </div>
      <div class="cell">
        <div class="cell_title">
          第一期
          <div class="text">
            <span>计息中</span>
          </div>
        </div>
        <ul class="cell_main clearfix">
          <li>
            <p class="cellvalue">10</p>
            <p class="cellname">投资期限(天)</p>
          </li>
          <li>
            <p class="cellvalue">2000</p>
            <p class="cellname">应收本金</p>
          </li>
          <li>
            <p class="interestvalue">2.66</p>
            <p class="interestname">应收利息</p>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
    name: "projectname",
  },
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style scoped lang="less">
/* //@import url(); 引入公共css类 */
.projectname {
  width: 100%;
  height: 100%;
  background: #f7f8f9;
  .nav {
    background: rgba(255, 255, 255, 0);
    border: none;
    box-shadow: none;
  }
  /deep/.van-hairline--bottom::after {
    border-bottom-width: 0;
  }
  /deep/.van-nav-bar .van-icon {
    color: #ffffff;
  }
  /deep/ .van-nav-bar__title {
    color: #ffffff;
  }
  .header {
    height: 198px;
    margin-top: -48px;
    background: url("../../assets/img/capitaldetails/banner.png") no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .money {
      font-size: 25px;
      font-family: DINPro, DINPro-Bold;
      font-weight: 700;
      text-align: center;
      color: #ffffff;
      span {
        opacity: 0.8;
        font-size: 14px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        color: #ffffff;
      }
    }
    .tip {
      font-size: 11px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: center;
      color: #fde7e7;
      line-height: 16px;
      letter-spacing: 0px;
      margin-top: 5px;
    }
  }
  .column {
    background: #ffffff;
    border-radius: 13px;
    box-shadow: 0px 20px 20px 0px #fff2f0;
    margin: 0 13px;
    margin-top: -60px;
    .list {
      li {
        width: 33%;
        margin: 35px 0 20px 0;
        height: 21px;
        float: left;
        border-right: 1px solid #f1f1f1;
        .name {
          font-size: 11px;
          font-family: PingFangSC, PingFangSC-Regular;
          font-weight: 400;
          text-align: center;
          color: #5f5f5f;
          letter-spacing: 0px;
          margin-top: 5px;
        }
        .value {
          font-size: 15px;
          font-family: DINPro, DINPro-Medium;
          font-weight: 500;
          text-align: center;
          color: #2b2b2b;
          letter-spacing: 0px;
          margin-top: -20px;
          span {
            opacity: 0.8;
            font-size: 11px;
            font-family: PingFangSC, PingFangSC-Regular;
            font-weight: 400;
            color: #2b2b2b;
            line-height: 16px;
            letter-spacing: 0px;
            margin-right: 5px;
          }
        }
      }
    }
    .msg {
      padding: 0px 15px 15px 15px;
      font-size: 11px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #656565;
      letter-spacing: 1px;
      img {
        vertical-align: middle;
      }
    }
  }
  .content {
    padding: 13px;
    .cell {
      background: #ffffff;
      border-radius: 5px;
      border-left: 5px solid #2eb8e6;
      margin-bottom: 13px;
      .cell_title {
        padding: 10px 15px;
        font-size: 11px;
        font-family: PingFangSC, PingFangSC-Medium;
        font-weight: 500;
        text-align: left;
        color: #405080;
        letter-spacing: 0px;
        .text {
          display: inline-block;
          border-radius: 3px;
          margin-left: 6px;
          width: 50px;
          height: 20px;
          line-height: 20px;
          text-align: center;
          background: #dfe7ff;
          transform: skewX(-15deg);
          span {
            display: inline-block;
            transform: skewX(15deg);
            font-size: 11px;
            font-family: PingFangSC, PingFangSC-Regular;
            font-weight: 400;
            text-align: left;
            color: #4f7bff;
          }
        }
      }
      .cell_main {
        padding: 10px 15px 20px 15px;
        li {
          width: 33%;
          float: left;
          .cellname {
            font-size: 11px;
            font-family: PingFangSC, PingFangSC-Regular;
            font-weight: 400;
            text-align: center;
            color: #5f5f5f;
            letter-spacing: 0px;
          }
          .cellvalue {
            font-size: 15px;
            font-family: DINPro, DINPro-Medium;
            font-weight: 500;
            text-align: center;
            color: #2b2b2b;
            line-height: 20px;
            letter-spacing: 0px;
          }
          .interestname {
            font-size: 11px;
            font-family: PingFangSC, PingFangSC-Regular;
            font-weight: 400;
            text-align: center;
            color: #5f5f5f;
            line-height: 16px;
            letter-spacing: 0px;
          }
          .interestvalue {
            font-size: 26px;
            font-family: DINPro, DINPro-Medium;
            font-weight: 500;
            text-align: center;
            color: #ff402d;
            line-height: 33px;
            letter-spacing: 0px;
            margin-top: -14px;
          }
        }
      }
    }
  }
  .righticon {
    width: 15px;
    height: 17px;
  }
}
</style>